package com.mengyu.moeisland.net

import java.lang.Throwable

class ApiException: Exception {
    var code: Int=-1
    var msg: String?=""
    var sysCode: String=""

    companion object{
        val ERRORNULL=-100  // null指针
        val ERRORPASER=-101 // 数据解析异常
        val ERRORNET=-102  // 网络异常
        val ERRORDATA=-102  // 网络异常
    }

    constructor(msg:String?,code:Int,sysCode: String):super(msg){
        this.code=code
        this.msg=msg
        this.sysCode=sysCode
    }
    constructor(msg:String?,code:Int):super(msg){
        this.code=code
        this.msg=msg
    }
    constructor(msg:String, throws: kotlin.Throwable?):super(msg,throws)
    {
        this.code=code
        this.msg=msg
    }


}